package com.wust.controller;

import com.wust.common.ServerResponse;
import com.wust.service.IFollowService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Created by lenovo on 2018/6/14.
 */
@RestController
@RequestMapping("/api/follow")
@EnableSwagger2
@Api(value = "follow", description = "关注接口")
public class FollowController {

    @Autowired
    private IFollowService iFollowService;

    @ApiOperation("扫描关注")
    @PostMapping("/dogetFollow")
    public ServerResponse getFollow(String userId, String followId){
        return iFollowService.getFollow(Integer.valueOf(userId),Integer.valueOf(followId));
    }
}
